home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Application / WindowLocator.h < prev   
Encoding:
Text File  |  1997-06-28  |  475 b   |  29 lines  |  [TEXT/CWIE]

  1. // WindowLocator.h
  2.  
  3. #ifndef WindowLocator_h
  4. #define WindowLocator_h
  5.  
  6. #ifndef RedBlackLink_h
  7. #include "RedBlackLink.h"
  8. #endif
  9.  
  10. class AbstractWindow;
  11.  
  12. class WindowLocator
  13.   {
  14.     public:
  15.         typedef RedBlackLinkTree< WindowPtr, AbstractWindow > TreeType;
  16.  
  17.     private:
  18.         static TreeType& Tree();
  19.  
  20.     public:
  21.         typedef RedBlackLink< WindowPtr, AbstractWindow > Registration;
  22.         
  23.         static void Register( Registration& );
  24.         
  25.         virtual AbstractWindow& LocateWindow( WindowPtr );
  26.   };
  27.  
  28. #endif
  29.